
from vanna.flask import VannaFlaskApp
import vanna
from vanna.remote import VannaDefault
vn = VannaDefault(
    model='chinook', api_key='vn-55eb6e0a4d2b4e9f9824d9bf36fc677f')
# vn = VannaDefault(model='chinook', api_key=vanna.get_api_key('huangxingde@gmail.com'))

vn.connect_to_sqlite('https://vanna.ai/Chinook.sqlite')
# vn.connect_to_mysql(host='localhost',dbname='mysql',user='root',password='Talent@123',port=3306)
vn.ask("What are the top 10 albums by sales?")
VannaFlaskApp(vn).run()
